#pragma once

#include "FileReader.h"

namespace IcyCrystal {

	class Lexer
	{
	private:
		
		char c;

		Token* currentToken;
		Token* readAheadToken;

		string* getKeyword();
		string* getString();
		void getNumber(Token& token);

		void replaceIfIdentifier(Token& token);

		void readIntoToken(Token& currentToken );
	public:
		FileReader& fileReader;
		Lexer(FileReader& fileReader);
		~Lexer();
		Token* getNextToken();
		Token* getReadAheadToken();

	};

}
